package com.huanxin.jna;

import com.sun.jna.ptr.DoubleByReference;

/**
 * 模型调用测试
 * 
 * @author FELIX
 *
 */
public class JNRD_SO2_Test {
	public static void main(String[] args) {
		// 正向模型测试
		DoubleByReference SO2OutDen = new DoubleByReference();
		DoubleByReference CaSRatio = new DoubleByReference();
		DoubleByReference PH_reaction = new DoubleByReference();
		DoubleByReference liquidGasRatio = new DoubleByReference();
		JNRD_SO2.INSTANCE.reactionModel(SO2OutDen, CaSRatio, PH_reaction, liquidGasRatio, 0.1, 0.1, 0.1, 0.1, 0, 0.1,
				0.1, 7, 0.1);
		System.out.println("正向模型测试");
		System.out.println("SO2OutDen:"+SO2OutDen.getValue());
		System.out.println("CaSRatio:"+CaSRatio.getValue());
		System.out.println("PH:"+PH_reaction.getValue());
		System.out.println("liquidGasRatio:"+liquidGasRatio.getValue());

		// 预测模型测试
		DoubleByReference PH_forecast = new DoubleByReference();
		DoubleByReference slurrySupply = new DoubleByReference();
		DoubleByReference pumpGroup = new DoubleByReference();
		JNRD_SO2.INSTANCE.forecastModel(PH_forecast, slurrySupply, pumpGroup, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
				0.1, 7, 0.1, 0);
		System.out.println("预测模型测试");
		System.out.println("PH:"+PH_forecast.getValue());
		System.out.println("slurrySupply:"+slurrySupply.getValue());
		System.out.println("pumpGroup:"+pumpGroup.getValue());
	}
}
